import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import('@/views/layout/LayoutContainer.vue'),
      redirect: '/dengshi',
      children: [
        {
          name: 'dengshi',
          path: '/dengshi',
          component: () => import('@/views/dengshi/DengshiAnswer.vue')
        },
        {
          name: 'huidu',
          path: '/huidu',
          component: () => import('@/views/huidu/HuiduAnswer.vue')
        },
        {
          name: 'huijiajiao',
          path: '/huijiajiao',
          component: () => import('@/views/huijiajiao/HuijiajiaoAnswer.vue')
        }
      ]
    }
  ]
})

export default router
